package com.zyf.school.manager.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;
import java.util.List;

@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Department implements Serializable {
    @TableId(type = IdType.AUTO)
    private int id;//部门编号
    private String name;//部门名称
    private String remark;//备注信息
    private int parent_id;//上级部门编号

    //列表
    @TableField(exist = false)
    private List<Department> list;

    private String card;//编号
}
